package com.start.platform.core.vo;

import com.alibaba.fastjson2.JSONArray;
import com.start.platform.core.entity.StartPlatformFans;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

@Data
public class StartPlatformFansDetail extends StartPlatformFans {

    @Schema(name = "用户昵称")
    private String nickName;
    @Schema(name = "用户性别")
    private int sex;
    @Schema(name = "用户头像地址")
    private JSONArray avatar;
    @Schema(name = "是否新用户")
    private boolean newUser;


    public static StartPlatformFansDetail create(StartPlatformFans platformFans) {
        StartPlatformFansDetail detail = new StartPlatformFansDetail();
        detail.setPlatformAppId(platformFans.getPlatformAppId());
        detail.setPlatformType(platformFans.getPlatformType());
        detail.setPlatformOpenId(platformFans.getPlatformOpenId());
        return detail;
    }
}
